<extend name="Share/layout" />
<block name="body">
 <form class="regBox JS_input" action="{:U('User/retrieve')}">
	<div class="regHd_logo">
		<span><img src="__ASSETS__/share/images/LOGO.png"></span>
		<font>66Play</font>
	</div>
	<div class="wh reg_currentBt">
		<div class="regTtBox">
			<span>
				<font>进入页面</font>
				<font>重置密码</font>
				<font class="no">重置成功</font>
			</span>
		</div>
		<ul class="regList">
			<li title="注册手机号" class="regInputNum">
				<span class="reglistSt inputNum"></span>
				<input type="text" placeholder="注册手机号" name="mobile" class="phonenum" maxlength="11">
				<span class="regTs_text"></span>
			</li>
			<li title="密码要求包含数字、字母，长度6~16位" class="reginputPassword">
				<span class="reglistSt inputPassword"></span>
				<input type="password" name="password" placeholder="设置登录密码，长度6~16位" maxlength="16">
				<span class="regTs_text"></span>
			</li>
			<li title="再次重复密码" class="reginputPassword1">
				<span class="reglistSt inputPassword"></span>
				<input type="password" placeholder="再次重复密码" maxlength="16">
				<span class="regTs_text"></span>
			</li>
			<li title="请输入验证码" class="input_numYzm">
				<span class="reglistSt inputYzm"></span>
				<input type="text" name="verify" placeholder="请输入验证码">
				<input class="second" type="button" title="发送验证码" onclick="isPhoneNum(1)" value="发送验证码">
				<span class="regTs_text"></span>
			</li>
		</ul>
		<span class="regTsText"></span>
		<a href="javascript:" class="regSubmit JS_submit"><span>重置密码</span></a><!-- 点击提交 给按钮加个class regSubmit -->
	</div>
	<div class="wh reg_successBt">
		<div class="regTtBox regTtBox1">
			<span>
				<font>进入页面</font>
				<font>重置密码</font>
				<font>重置成功</font>
			</span>
		</div>
		<div class="reg_successBox">
			<span class="img"><img src="__ASSETS__/share/images/success.png"></span>
			<span class="txt">重置密码成功</span>
			<span class="text">您已经成功重置密码了，现在可以使用账号登录PC录制工具以及手机APP。</span>
			<span class="reg_ewm_bg">
				<span><img src="__ASSETS__/share/images/qrcode.jpg"></span>
				<font>扫码下载APP</font>
			</span>
			<span class="bt"><a href="javascript:" class="reg_qrcode">下载手机APP</a><a href="{:U('Download/pc')}">下载PC录制工具</a></span>
		</div>
	</div>
</form>
<script type="text/javascript">
	$('.JS_submit').click(function(){
		$.ajax({
			url:$('form').attr('action'),
			data:$(".JS_input").serialize(),
			type:'post',
			dataType:'json',
			success:function(data){
				if(data.state < 0){
					msg = data.info;
					$(".regBox .regTsText").html(msg);
					return;
				}else{
					$(".regBox .regTsText").empty();
					JS_reg_currentBt();
					if (data.url != ''){
						// window.location.href= data.url;
					}
					else{
						
						// location.reload();
					}
				}
			}
		});
	});
</script>
</block>